package com.benmei.weike.web.vo.mcCourse;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Peter on 2018/10/30.
 */
public class McCourseGroupBuyResultResponse {
    private String courseName;
    private Date courseStartTime;
    private Date courseEndTime;
    private Integer courseSize;
    private Date groupEndTime;
    private Integer groupMaxUser;
    private Integer remainGroupUser;// 剩余几人可以参团
    private BigDecimal groupPrice;

    private SimpleDateFormat sdf = new SimpleDateFormat("MM.dd");
    private SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd,HH:mm:ss");// 2019/02/04,00:00:00"


    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getGroupPrice() {
        return groupPrice.setScale(2, BigDecimal.ROUND_DOWN).toString();
    }

    public void setGroupPrice(BigDecimal groupPrice) {
        this.groupPrice = groupPrice;
    }

    public String getCourseStartTime() {
        return sdf.format(courseStartTime);
    }

    public void setCourseStartTime(Date courseStartTime) {
        this.courseStartTime = courseStartTime;
    }

    public String getCourseEndTime() {
        return  sdf.format(courseEndTime);
    }

    public void setCourseEndTime(Date courseEndTime) {
        this.courseEndTime = courseEndTime;
    }

    public Integer getCourseSize() {
        return courseSize;
    }

    public void setCourseSize(Integer courseSize) {
        this.courseSize = courseSize;
    }

    public String getGroupEndTime() {
        return sdf2.format(groupEndTime);
    }

    public void setGroupEndTime(Date groupEndTime) {
        this.groupEndTime = groupEndTime;
    }

    public Integer getGroupMaxUser() {
        return groupMaxUser;
    }

    public void setGroupMaxUser(Integer groupMaxUser) {
        this.groupMaxUser = groupMaxUser;
    }

    public Integer getRemainGroupUser() {
        return remainGroupUser;
    }

    public void setRemainGroupUser(Integer remainGroupUser) {
        this.remainGroupUser = remainGroupUser;
    }
}
